﻿#ifndef QQ_CHAT_INDEXDELEGATE_H
#define QQ_CHAT_INDEXDELEGATE_H

#include <qicon.h>
#include <qevent.h>
#include <qpainter.h>
#include <qstyleditemdelegate.h>
#include <qpainterpath.h>

#include <ElaTheme.h>

#include "core/QQConfig.h"

class QQChatIndexDelegate : public QStyledItemDelegate
{
	Q_OBJECT
public:
	QQChatIndexDelegate(QObject* parent = nullptr);
	~QQChatIndexDelegate();

	void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const override;
private:
	int mSpace{ 10 };
	int  mIconWidth{ 40 };
	QSize  mNameSize{ 50,20 };
};

#endif // QQ_CHAT_INDEXDELEGATE_H